package org.csu.newpetstoreback.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("product")
public class Product implements Serializable {

    @TableId(value = "productid", type = IdType.INPUT)
    private String productId;

    @TableField(value = "pName")
    @JsonProperty("pName")
    private String pName;

    @TableField(value = "categoryid")
    private String categoryId;

    @TableField(value = "pDescn")
    @JsonProperty("pDescn")
    private String pDescn;

    @TableField(value = "pImage")
    @JsonProperty("pImage")
    private String pImage;
}
